<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function isLeapYear(year) {
        if ((year % 4 == 0 &&year % 100 !=0) || year % 400 == 0){
            return true;
        }else {
            return false;
        }
    }
   console.log(isLeapYear(2008))
</script>
</body>
</html>